package com.fowo.api.syncLingxingApi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fowo.api.entity.Product;
import com.fowo.api.syncLingxingApi.entity.TmpSyncLingxingToProductInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TmpSyncLingxingToProductInfoMapper extends BaseMapper<TmpSyncLingxingToProductInfo> {
    Integer updateToProducts(String version);

    void updateProductInfo(String version);

    void deleteAll();
    List<Product> getProductBySku(@Param("infos") List<TmpSyncLingxingToProductInfo> infos);

    List<String> getAllSku(long offset, long length);

    @Select("select sku from product where del_flag=0")
    List<String> getSkus();

    void updateCustomsPrice(String version);

    void insertCustomsPrice(String version);
}
